//
//  CLshenTableCell.m
//  I-want-go
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "CLshenTableCell.h"
#import "CLscreen.h"
@implementation CLshenTableCell

- (void)dealloc {
    [_phoneImage release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.contentView.backgroundColor = [UIColor clearColor];
    
    self.phoneImage = [[UIImageView alloc] init];
    [self.contentView addSubview:self.phoneImage];
    [_phoneImage release];
    
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.titleLabel];
    [_titleLabel release];
    
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.phoneImage.frame = CGRectMake(5 * SWIDTH, 5 * SHEIGHT, 120 * SWIDTH, 130 * SHEIGHT);
    
    self.titleLabel.frame = CGRectMake(130 * SWIDTH, 10 * SHEIGHT, 230 * SWIDTH, 100 * SHEIGHT);
    
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
